package club.jdiy.core.sql;

import lombok.Getter;

import java.io.Serializable;
import java.util.Map;

@Getter
public class TableInfo implements Serializable {
    private final String tableName;
    private final boolean view;//是否是视图
    private final String primaryKey;
    private final Map<String, ColumnInfo> columns;

    TableInfo(String tableName, String primaryKey, Map<String, ColumnInfo> columnInfoMap,boolean view) {
        this.tableName = tableName;
        this.primaryKey = primaryKey;
        this.columns = columnInfoMap;
        this.view = view;
    }
}
